package com.lechuang.controller.mobile;

import com.lechuang.controller.BaseController;
import com.lechuang.controller.validate.mobile.login.LoginValidate;
import com.lechuang.model.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by Administrator on 2016/9/27.
 */
@Controller
public class LoginController extends BaseController {

    @RequestMapping(value = "/register",method = RequestMethod.POST)
    @ResponseBody
    public void register(HttpServletRequest request,User user,String code){
        new LoginValidate().validate(request);
    }

}
